<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Starter Template for Bootstrap</title>

    <link href="./dist/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="./dist/js/jquery-1.7.2.js"></script>
  </head>

  <body>
    <form action="./ting.php?id=<?php echo $id ?>" method="POST">
      <div class="row">
        <div class="col-lg-2">
          <div class="input-group">
            <input type="hidden" class="form-control" value="<?php echo $_SESSION['username'] ?>"  name="username" >
            <span href=""><?php echo "欢迎用户".$_SESSION['username']; ?></span>
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit">保存</button>
            </span>
          </div>
        </div>
      </div>
      <textarea style="width: 60%" name="content" ><?php echo $db[$id]['content'] ?></textarea>
    </form>
  </body>
</html>